class CreateRaces < ActiveRecord::Migration
  def self.up
    create_table :races do |t|
      t.column :name, :string
      t.column :faction, :string
    end

    Race.create :name => "Human", :faction=>"Alliance"
    Race.create :name => "NightElf", :faction=>"Alliance"
    Race.create :name => "Gnome", :faction=>"Alliance"
    Race.create :name => "Dwarf", :faction=>"Alliance"
    Race.create :name => "Draneri", :faction=>"Alliance"
    Race.create :name => "Orc", :faction=>"Horde"
    Race.create :name => "Troll", :faction=>"Horde"
    Race.create :name => "Forsaken", :faction=>"Horde"
    Race.create :name => "Tauren", :faction=>"Horde"
    Race.create :name => "Blood Elf", :faction=>"Horde"

  end

  def self.down
    drop_table :races
  end
end
